package com.customer.crm.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.customer.crm.system.mapper.TaskMapper;
import com.customer.crm.system.pojo.Task;
import com.customer.crm.system.service.TaskService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Lyp
 * @create 2021/12/20
 */
@Service
public class TaskServiceImpl extends ServiceImpl<TaskMapper , Task> implements TaskService {

    @Override
    public List<Task> findAllTask(Long page, Long rows , Integer taskId) {
        return baseMapper.findAllTask(page , rows , taskId);
    }

    @Override
    public List<Task> findMyTask(String systemUsername) {
        return baseMapper.findMyTask(systemUsername);
    }

    @Override
    public List<Task> myDistributeTask(String systemUsername) {
        return baseMapper.myDistributeTask(systemUsername);
    }

    @Override
    public List<Task> endToday() {
        return baseMapper.endToday();
    }

    @Override
    public List<Task> endWeek() {
        return baseMapper.endWeek();
    }

    @Override
    public List<Task> endMonth() {
        return baseMapper.endMonth();
    }
}
